package com.ytq.pratice.springbootmybatisplus.redis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.ValueOperations;

import java.lang.ref.SoftReference;

/**
 * @author yuantongqin
 * @date 2018/9/9 下午5:27
 */
public class RedisDemo {

    @Autowired
    private StringRedisTemplate template;

    @Autowired
    RedisTemplate<String,String> redisTemplate;



    public void ss(){
        ValueOperations<String, String> ops = redisTemplate.opsForValue();
        ops.set("","");


    }



}
